package com.ys.homework;

/**
 * 描述: TODO
 *
 * @author CodeYang
 * @version 2020/12/16 0:30
 */
public class Actor extends Person {

    /**
     * 学校
     */
    private String school;
    /**
     * 作品
     */
    private String production;

    public Actor() {
    }

    public Actor(String name, int age, String sex, String school, String production) {
        super(name, age, sex);
        this.school = school;
        this.production = production;
    }

    @Override
    public void showInfo() {
        System.out.println("大家好,我是:"+this.name);
        System.out.println("今年:"+this.age);
        System.out.println("我毕业于:"+this.school);
        System.out.println("代表着有:"+this.production);
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public String getProduction() {
        return production;
    }

    public void setProduction(String production) {
        this.production = production;
    }
}
